<template>
  <div class="container">
    <!-- <div class="box">
      <header class="header">头部</header>
      <main class="content">Neiorng </main>
    </div> -->
    <router-view></router-view>
    <!-- <footer class="footer">
      <van-tabbar v-model="active" route>
        <van-tabbar-item to="/" icon="home-o">首页</van-tabbar-item>
        <van-tabbar-item to="/kind" icon="apps-o">分类</van-tabbar-item>
        <van-tabbar-item to="/cart" icon="friends-o">购物车</van-tabbar-item>
        <van-tabbar-item to="/user" icon="setting-o">我的</van-tabbar-item>
      </van-tabbar>
    </footer> -->
    <router-view name="footer"></router-view>
  </div>
</template>

<style lang="scss">
* {
  margin: 0;
  padding: 0;
  list-style: none;
}

html,
body,
#app,
.container {
  width: 100%;
  height: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  background: #efefef;

  .box {
    flex: 1;
    overflow: auto;

    display: flex;
    flex-direction: column;

    .header {
      height: 3.125rem;
    }

    .content {
      flex: 1;
      overflow: auto;
    }
  }

  .footer {
    height: 3.125rem;

    .van-tabbar-item--active {
      color: red
    }
  }

}
</style>
